/* Mock 数据 */
const _product = [{
    id: 1,
    title: "苹果12proMax",
    price: 12000,
    inventory: 8 //库存
}, {
    id: 2,
    title: "AirMac",
    price: 15000,
    inventory: 4
}, {
    id: 3,
    title: "德芙巧克力",
    price: 10,
    inventory: 40
}];
/* function getProducts(){
    //异步请求
    return _product;
}
 */
const getProducts = (params) => {
    return _product;
};
export {
    getProducts
}